package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.system.domain.SapData;
import com.ruoyi.system.domain.vo.SapDataRgblVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tianfu-li
 * @since 2025-43-04
 */
public interface SapDataService extends IService<SapData> {
    boolean updateSapDataBySap(String orderNo,String userId) throws JsonProcessingException;
    boolean updateBatchSapDataBySap(List<String> orderNos ,String userId) throws JsonProcessingException;
    List<SapData> selectByOrderNo(String orderNo);
    int  updateSapDataStatusBatch(Set<Long> Ids ,Integer status);
    boolean insertSapDataBatch(List<SapData> sapDataList) throws JsonProcessingException;
    int updateSapData(SapData sapData);
    List<SapDataRgblVo>selectByOrderNos(List<String> orderNos);
    List<SapDataRgblVo>selectByOrderNoVo(String orderNo);
    List<SapDataRgblVo> selectByIdsVo(List<Long> Ids);
    List<SapData>selectByIds(List<Long> Ids);
    List<String> getOrderNos(List<Long> Ids);

}
